import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-all-checked',
  templateUrl: './all-checked.component.html',
  styleUrls: ['./all-checked.component.css']
})
export class AllCheckedComponent implements OnInit {

  constructor() { }

  ngOnInit() {
    console.log(this.data);
  }
  data=[
    {id:1,name:"你好"},
    {id:2,name:"哈哈"},
    {id:3,name:"呵呵"},
    {id:4,name:"嘿嘿"},
  ]
  number;
  add(){
console.log('点击');
this.number=this.number+5000;
  }
  reduce(){
    this.number=this.number-5000;

  }
}
